package com.px.chapter_Dec_1.textt;



import com.sun.javafx.scene.control.skin.VirtualFlow;

import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.Stream;


public class text {
    public static void main(String[] args) {
        User u1=new User("jj",50);
        User u2=new User("dfgf",55);
        User u3=new User("jjs",10);
        ArrayList<User> users= (ArrayList<User>) Stream.of(u1,u2,u3).collect(Collectors.toList());
        users.forEach(System.out::println);
        ArrayList<User> ii= (ArrayList<User>) users;




        User[] h={new User("YY",50),new User("hj",54)};
        for (User i:h) {
            System.out.println(i);
        }
        System.out.println("+++++++++++++++++");

        }
    }

